package com.example.zdxk.util;

import com.alibaba.fastjson.JSONObject;

public class LbsAPI {

    /**
     * 基站定位接口
     * @param mcc
     * @param mnc
     * @param lac
     * @param cell
     * @return
     */
    static public JSONObject getLocJSON(String mcc,String mnc,String lac,String cell){
        String requestURL = "http://api.cellocation.com:81/cell/?mcc="+mcc
                +"&mnc="+mnc+"&lac="+lac+"&ci="+cell+"&coord=bd09&output=json";
        JSONObject location = HttpUtil.httpRequestJSON(requestURL,"GET");
        System.out.println("dlbs: "+requestURL);
        return location;
    }
    static public JSONObject getLoc(String mac){
        String requestURL = " http://api.cellocation.com:81/wifi/?mac="+mac+"&output=json";
        JSONObject location = HttpUtil.httpRequestJSON(requestURL,"GET");
        return location;
    }




}
